package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.Video;
import com.tanhua.dubbo.server.vo.PageInfo;

public interface VideoApi {

    /**
     * 保存小视频
     *
     * @param video
     * @return 保存成功后，返回视频id
     */
    String saveVideo(Video video);

    PageInfo<Video> queryVideoList(Long userId, Integer page, Integer pageSize);

    Video queryVideoById(String publishId);


    Boolean followUser(Long userId, Long followUserId);

    Boolean disfollowUser(Long userId, Long disfollowUserId);
}
